#ifndef __TCPCLIENT_H__
#define __TCPCLINET_H__
#include"Socket.h"
#include"SocketIO.h"
#include"InetAddress.h"
#include<string>
using std::string;
class TcpClinet{
private:
    Socket _sok;
    SocketIO _sokIO;
    InetAddress _dstAddr;
    bool _isConn;
public:
    TcpClinet(const string &ip,unsigned short port);
    ~TcpClinet();

    void connect();
    string recvMsg();
    void sendMsg(const string &data,int flag);
    bool isConnection();
};

#endif
